package open3366pvp.as3
{
	import flash.events.Event;
	
	public class Open3366PvpEvent extends Event
	{
		public static const SOCKET_CLOSE:String = "socketClose";//socket关闭
		public static const SOCKET_ERROR:String = "socketError";//socket错误
		public static const SOCKET_DATA:String = "socketData";//正确数据包过来
		
		public static const INIT_GAME_OVER:String = "initGameOver";//初始化游戏完成
		
		public static const QUICK_ENTER_GAME:String = "quickEnterGame";//快速进入游戏
		
		public static const ENTER_ZONE:String = "enterZone";//进入游戏区
		public static const ENTER_ROOM:String = "enterRoom";//进入房间
		public static const ENTER_TABLE:String = "enterTable";//进入桌子
		
		public static const GET_ZONE_LIST:String = "getZoneList";//获取所有区信息		
		public static const GET_ROOM_LIST:String = "getRoomList";//获取所有房间信息
		public static const GET_TABLE_LIST:String = "getTableList";//获取所有桌子信息
		public static const GET_USER_LIST:String = "getUserList";//获取桌子内的所有用户信息
		
		public static const GET_ZONE_INFO:String = "getZoneInfo";//获取指定区信息
		public static const GET_ROOM_INFO:String = "getRoomInfo";//获取指定房间信息
		public static const GET_TABLE_INFO:String = "getTableInfo";//获取指定桌子信息
		public static const GET_USER_INFO:String = "getUserInfo";//获取指定用户属性
		
		public static const GET_MASS_ROOM_INFO:String = "getMassRoomInfo";//获取批量房间属性
		public static const GET_MASS_TABLE_INFO:String = "getMassTableInfo";//获取批量桌子信息
		public static const GET_MASS_USER_INFO:String = "getMassUserInfo";//批量获取用户属性
		
		public static const SET_ZONE_PROP:String = "setZoneProp";//创建并设置区属性
		public static const CREATE_AND_SET_ROOM_PROP:String = "createAndSetRoomProp";//创建并设置房间属性
		public static const CREATE_AND_SET_TABLE_PROP:String = "createAndSetTableProp";//创建并设置桌子属性
		public static const SET_USER_PROP:String = "setUserProp";//设置用户自己属性
		
		public static const SERVER_MESSAGE:String = "serverMessage";//服务器主动推动的消息
		
		public static const QUIT_TABLE:String = "quitTable";//退出桌子
		public static const QUIT_ROOM:String = "quitRoom";//退出房间
		public static const QUIT_ZONE:String = "quitZone";//退出去
		
		public static const SET_GAME_PROP_SUCCESS:String = "setGamePropSuccess";//设置游戏参数
		
		public static const RE_CONNECT_SUCCESS:String = "reConnectSuccess";//重连成功
		
		private var _data:*
		
		public function Open3366PvpEvent(type:String, data:* = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			_data = data;
			super(type, bubbles, cancelable);
		}
		
		public function get data():*
		{
			return _data;
		}
		
		override public function clone():Event
		{
			return new Open3366PvpEvent(type, data, bubbles, cancelable);
		}
	}
}